package other.nowcoder.easy;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * @author bruin_du
 * @description 快到碗里来
 * https://www.nowcoder.com/questionTerminal/82424d93369649b98720743c25edc6ce
 * @date 2022/5/25 15:59
 **/
public class CatAndBowl {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextDouble()){
            double length = in.nextDouble();
            double radius = in.nextDouble();
            radius *= 2 * 3.14;
            //1.使用BigDecimal
            BigDecimal bdL = new BigDecimal(length);
            BigDecimal bdR = new BigDecimal(radius);
            if(bdL.compareTo(bdR) <= 0)
                System.out.println("Yes");
            else
                System.out.println("No");

            //2.使用包装类Double
            Double dL = length;
            Double dR = radius;
            if(dL.compareTo(dR) <= 0)
                System.out.println("Yes");
            else
                System.out.println("No");

            //3.使用使用sun提供的Double.doubleToLongBits()方法
            long lL = Double.doubleToRawLongBits(length);
            long lR = Double.doubleToRawLongBits(radius);
            if(lL <= lR) System.out.println("Yes");
            else System.out.println("No");

            //4.两实数的差在允许的范围内认为相等既可认为是相等的
            if(length - radius < 0.000001) System.out.println("Yes");
            else System.out.println("No");

            //5.转换成字符串
            String strL = String.valueOf(length);
            String strR = String.valueOf(radius);
            if(strL.compareTo(strR) <= 0) System.out.println("Yes");
            else System.out.println("No");
        }
    }
}
